<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>Test TextBox Validation Widgets</title>
		<link rel="stylesheet" id="themeStyles" href="http://group2.tianji.com/dijit/themes/tundra/tundra.css">
		<style type="text/css">
			
		</style>
		
		<script src="http://leoner.tianji.com/dojo/dojo.js" djConfig="isDebug:true, parseOnLoad: true"></script>
		<script type="text/javascript">
		dojo.require("mydojo.test.declare.Shape");
			function test1(){
				var p1 = {};
				function C1(){};
				C1.prototype = p1;
				var c1 = new C1();
				console.log(c1.constructor); // Object
				C1.prototype.constructor = C1;
				var c2 = new C1();
				console.log(c2.constructor); //  C1
			}
			function test2(){
				
	
				var s1 = new Shape();
				console.log(s1.color); //0
				s1.setColor(2);
				console.log(s1.color); //0
				console.log(s1.constructor == Shape);
				console.log(s1._constructor);
				console.log("===============================");
				var c1 = new Circle(5);
				console.log(c1.area());
				console.log(c1.color);
				console.log("===============================");
				Shape.prototype.addColor = function(){
					this.color++;
				}
				c1.addColor();
				console.log(c1.color);
				var names = ["a","b"];
				dojo.extend(Shape,{
					name:names
				});
				
				console.log(c1.name);
				names.push("c");
				console.log(c1.name);
				console.log("===============================");
				var pc = new PositionCircle(4,1,2);
				console.log(pc.radius+"-"+pc.x+"-"+pc.y);
				pc.move(3,4);
				console.log(pc.radius+"-"+pc.x+"-"+pc.y);
				console.log("===============================");
				console.log(pc.area());
				
			}
			function test3(){
				//var sub = new Subclass(1,2,3,4,5,6,7,8,9);
				var base = new Base(1,2,3,4,5);
			}
			test3();
		</script>
	</head>
	<body class="tundra">
			
	</body>
</html>
